package net.yunzhanyi.generic.domain.model;

import java.io.Serializable;

/**
 * @author bestct
 */
public class PostUpvote implements Serializable {
    /**
     * 点赞id
     */
    private Long id;

    /**
     * 动态id
     */
    private Long postId;

    /**
     * 用户id
     */
    private Long uid;

    /**
     * 点赞状态
     */
    private Integer upvoteStatus;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getPostId() {
        return postId;
    }

    public void setPostId(Long postId) {
        this.postId = postId;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Integer getUpvoteStatus() {
        return upvoteStatus;
    }

    public void setUpvoteStatus(Integer upvoteStatus) {
        this.upvoteStatus = upvoteStatus;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", postId=").append(postId);
        sb.append(", uid=").append(uid);
        sb.append(", upvoteStatus=").append(upvoteStatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}